<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>원룸몬스터</title>

<link href="/room/css/all.css" rel="stylesheet" type="text/css" />
<script src="/room/script/swfobject_modified.js" type="text/javascript"></script>
<script src="/room/script/common.js" type="text/javascript"></script>
<script src="/room/script/jquery-1.3.2.min.js" type="text/javascript" ></script>
<script type="text/javascript">
<!--
$(document).ready(function(){
	  $('#confirmBtn').click(function() {
	   //   window.location = "write.jsp";
	  });

});
//주민등록번호 체크
function chechk() {
	var frm = document.frm;
	
	var yy = frm.m_jumin1.value.substring(0,2);
	var mm = frm.m_jumin1.value.substring(2,4);
	var dd = frm.m_jumin1.value.substring(4,6);
	var gender = frm.m_jumin2.value.substring(0,1);
	var ck=0;
	if(frm.name.value ==""){
	 alert("이름을 입력하십시오.");
	 frm.name.value = "";
	 frm.name.focus();
	 return false;
	}
	// 처음 7자 검사
	if (frm.m_jumin1.value.length != 6 || frm.m_jumin2.value.length != 7 || yy < 20 || mm < 1 || mm > 12 || dd < 0 || dd > 31 || gender > 2 || gender < 1) {
	 alert("잘못된 주민등록번호입니다.");
	 frm.m_jumin1.value = frm.m_jumin2.value="";
	 frm.m_jumin1.focus();
	 return false;
	}
	
	//끝자리 검증번호 유효성 검사
	var total = frm.m_jumin1.value + frm.m_jumin2.value;
	for (i=0; i < 12; i++) {
	 ck  += (i%8+2)*total.substring(i, i+1);
	}
	
	ck = (11-(ck%11))%10;
	
	if (parseInt(ck) != parseInt(total.substring(12, 13))) {
	 alert("잘못된 주민등록번호입니다.");
	 frm.m_jumin1.value = frm.m_jumin2.value="";
	 frm.m_jumin1.focus();
	 return false;
	}
	return true;
} 


//-->
</script>
</head>

<body>
<div align="center"> 

 <div id="content">

<!----------------왼쪽---------------->  
<%@ include file="/room/common/left.jsp" %>
<!----------------왼쪽끝---------------->  


<!----------------가운데 시작----------------> 
 <div id="rgt">
  <div id="con01">
   <div class="top bb1"><img src="/room/img/txt_top.gif" /></div> 
   <div>
<!---------------- 내용시작----------------> 
<form name="frm" id="frm" action="write.jsp" method="post" onsubmit="return chechk(this);">
   <div>
    <div class="list h550">
      <div class="pb20"><span style="font-size:11px;">Home >회원> <span style="color:#000;">실명인증</span></span></div>
      <div>
       <div class="pb10"><img src="/room/img/line_blue.gif" width="32" height="2" /></div>
       <div class="tit">실명인증 </div>
     </div>
     
	<div class="pt10" align="center">
	<div class="pt15">
	 <table width="555" border="0" cellspacing="0" cellpadding="0">
	  <tr>
	    <td class="h30" align="left">&bull; &nbsp;<strong>이름</strong></td>
	    <td class="h30" align="left"><input type="text" name="name" id="name" style="width:120px"/></td>
	  </tr>
	  <tr>
	    <td class="h30" align="left">&bull; &nbsp;<strong>주민등록번호</strong></td>
	    <td class="h30" align="left"><input type="text" name="m_jumin1" id="m_jumin1" maxlength="6" style="width:70px"/>&nbsp;&nbsp;-&nbsp;&nbsp;<input type="password" name="m_jumin2" id="m_jumin2" maxlength="7" style="width:70px"/>
	  </tr>
	  <tr>
	    <td class="h30" align="left">&nbsp;</td>	  
	    <td class="h30" align="left"><input type="image" src="/room/img/btn_next.gif" id="confirmBtn"/></td>
	  </tr>	  
	</table>
	</div>
	</div>


	<!-- h4>실명으로 인증</h4>
	<dl>
		<dt><label for="m_name">설명</label></dt>
		<dd><input name="m_name" id="m_name" maxlength="20" type="text" title="이름입력" value="" class="write01" /></dd>
		<dt><label for="m_jumin1">주민등록번호</label></dt>
		<dd><input id="m_jumin1" name="m_jumin1" type="text" maxlength="6" value="" class="write02" title="주민등록번호 앞자리 입력" /> - <input type="text" id="m_jumin2" name="m_jumin2" value="" maxlength="7" class="write03" title="주민등록번호 뒷자리 입력" /></dd>
	</dl>
	<br />
	<div class="btn-align">	
	<p>
		<input type="radio" name="m_type" id="radio1" value="I" title="국내" checked="checked" /><label for="radio1">국내</label>&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="radio" name="m_type" id="radio2" value="E" title="국외" /><label for="radio2">국외</label>
	</p>
	</div>
	<br />
	<br />
	<span class="btn-align"><input type="button" value="확인" class="btn-bg-gray" id="confirmBtn" /></span -->


</form>
<!----------------내용끝----------------> 
   </div>
   </div>
</div>  
</div>
<!----------------가운데 끝---------------->



<!----------------오른쪽 시작---------------->  
<%@ include file="/room/common/right.jsp" %>  
<!----------------오른쪽 끝---------------->
</div>


<!-------------푸터영역----------> 
<%@ include file="/room/common/footer.jsp" %> 
<!-------------푸터영역----------> 
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>
</body>
</html>
